package com.gjs.common.pojo.dto.resource;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.util.List;

@Data
@ApiModel("Resource查询对象")
public class ResourceQueryDTO {

    @Min(value = 1,message = "资源ID必须为整数且不能小于1")
    @ApiModelProperty("资源ID")
    private Long id;

    @ApiModelProperty("资源ID（多个）")
    private List<Long> ids;

    @Min(1)
    @ApiModelProperty("资源分类ID")
    private Long channelId;

    @Min(1)
    @ApiModelProperty("资源版本ID")
    private Long editionId;

    @Min(1)
    @ApiModelProperty("资源学段ID")
    private Long periodId;

    @Min(1)
    @ApiModelProperty("资源年级ID")
    private Long stageId;

    @Min(1)
    @ApiModelProperty("资源学科ID")
    private Long subjectId;

    @ApiModelProperty("资源名称")
    private String resourceName;
}
